Skip to content

Conversation

@tisdall
Copy link
Contributor

@tisdall tisdall commented Apr 28, 2025

I went down a bit of a rabbit hole on this one...

I started off looking at urllib3 and noticing that while the changelog says >=2.2.3 I'm actually locked to 2.2.2 in my production environment. This is because the CI tests are run using requirements.txt but anyone using this package uses the requirements in setup.py. Then I noticed there's more discrepancies... You have a requirements-test.txt but it's not actually used at all for the CI, the requirements.txt has other discrepancies from what's quoted in setup.py, setup.py is using test_require and test_suite but neither actually exist any more in setuptools ...

I didn't want to spend too much time on this, so ended up with this change to limit how much I'm rewriting. This PR puts all the requirements in a single place in setup.py. However, developments in python packaging mean these things should really be in setup.cfg (you'll get a warning about it if you run the README suggested python setup.py develop).

@pkopac pkopac requested a review from keith-chartmogul April 28, 2025 14:00
@pkopac pkopac merged commit 75a5e5c into chartmogul:main Apr 29, 2025
6 checks passed
@tisdall tisdall deleted the fix-requirements branch April 29, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants